<template>
	<view class="container">
		<image class="deptImg" :src="dept.deptImg"/>
		<view class="content">
			<view class="dept-intro-container">
				<view class="intro-title">科室名称：</view>
				<view class="intro-content">{{dept.name}}</view>
			</view>
			<view class="dept-intro-container">
				<view class="intro-title">科室编号：</view>
				<view class="intro-content">{{dept.deptNumber}}</view>
			</view>
			<view class="dept-intro-container">
				<view class="intro-title">科室负责人：</view>
				<view class="intro-content">{{dept.deptLeader}}</view>
			</view>
			<view class="dept-intro-container">
				<view class="intro-title">科室电话：</view>
				<view class="intro-content">{{dept.leaderPhone}}</view>
			</view>
			<view class="dept-intro-container">
  				<view class="intro-title">科室介绍：</view>
 	 			<view class="intro-content">{{dept.deptShow}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {getDeptById} from '@/api/dept/index.js'
	export default {
		data() {
			return {
				dept:{}
			}
		},
		onLoad(options) {
			getDeptById(options.id).then(res=>{
				this.dept = res.data
			})
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	.container{
		background-color: #F4F4F6;
		width: 100%;
		height: 100vh;
	}
	page {
		.deptImg {
			width: 360px;
			margin: 10px 15px;
		}
		.dept-intro-container {
			display: flex;
			margin: 5px 15px;
			background-color: white;
			padding: 10px;
		}
		.intro-title {
			width: 80px;
			font-size: $font-size-sm;
			color: #333333;
			display: flex;
			align-items: center;
		}
		.intro-content {
			flex: 1;
			font-size: $font-size-sm;
			color: #333333;
			white-space: normal;
			line-height: normal;
			text-align: left;
		}
	}
</style>